package goodroommate.dao;

import java.util.LinkedList;

import goodroommate.dal.DatabaseSession;
import goodroommate.domain.News;
import goodroommate.exception.DatabaseException;

public interface INewsDao {

	public LinkedList<News>getNews(DatabaseSession dbs)throws DatabaseException;
	
	public News getNewsByID(DatabaseSession dbs ,int newsid)throws DatabaseException;
	
	public boolean addNews(DatabaseSession dbs,News news)throws DatabaseException;
	
	public LinkedList<News>getAllNews(DatabaseSession dbs)throws DatabaseException;
	
}
